package com.mark.maven.service.impl;

import com.mark.maven.dao.UserDaoCache;
import com.mark.maven.domain.User;
import com.mark.maven.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceCacheImpl implements UserService {

    private final UserDaoCache userDaoCache;

    public UserServiceCacheImpl(UserDaoCache userDaoCache) {
        this.userDaoCache = userDaoCache;
    }

    @Override
    public User getUser(Long id) {
        return userDaoCache.getUser(id);
    }
}
